package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter@Getter
/**
 * 用户的系统消息表
 */
public class UserMessage extends  BaseDomain{

    private Long userId;//用户id

    private Long msgId;//消息id

    private boolean state =true;//状态,默认已读,且不可更改

    private String content;//消息内容
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date sendTime;//发送时间

}